DynamicSprite description ...
Changes the sprite size to width x height, placing the current image at offset(x, y) within the new canvas.Unlike the Resize command, the current image is kept at its original size.
Copies the transparency mask from the specified sprite slot onto the dynamic sprite.The dynamic sprite's transparency and/or alpha channel will be replaced with the one from the other sprite.
static DynamicSprite Create(int width, int height, bool hasAlphaChannel)
Creates a blank dynamic sprite of the specified size.
static DynamicSprite CreateFromDrawingSurface(DrawingSurface surface, int x, int y, int width, int height)
Creates a dynamic sprite as a copy of a drawing surface.
static DynamicSprite CreateFromExistingSprite(int slot, bool preserveAlphaChannel)
Creates a dynamic sprite as a copy of an existing sprite.
static DynamicSprite CreateFromFile(string filename)
Creates a dynamic sprite from a BMP or PNG file.
void Delete()
Deletes the specified dynamic sprite from memory.Use this when you are no longer displaying the sprite and it can be safely disposed of.
DrawingSurface GetDrawingSurface(bool storeOnCPU)
Gets the drawing surface for this dynamic sprite, which allows you to modify the sprite by drawing onto it in various ways.
Rotates the dynamic sprite by the specified angle.The angle is in degrees, and must lie between 1 and 359. The image will be rotated clockwise by the specified angle.